﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IoCLocalContainer.cs" company="Spenta Consulting">
//   (c) Copyright 2011
// </copyright>
// <summary>
//   Dependency injection container for StreetCare MVC in local (IIS) environment
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Spenta.StreetCare.Core.IoC
{
    #region Using Directives

    using Infrastructure.Configuration;
    using Infrastructure.Implementations.Configuration;
    using Infrastructure.IoC;
    using Infrastructure.Logging;
    using Logging;

    #endregion

    /// <summary>
    /// Dependency injection container for StreetCare MVC in local (IIS) environment
    /// </summary>
    public class IoCLocalContainer : IoCUnityBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="IoCLocalContainer"/> class. 
        /// </summary>
        public IoCLocalContainer()
        {
            Initialize();
            RegisterSingleton<ILogger, DbLogger>();
            RegisterSingleton<IConfigurationBag, AppSettingsBag>();
        }
    }
}
